// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue' // 导入Vue
import FastClick from 'fastclick' // test
import VueRouter from 'vue-router' // 导入Vue路由
import App from './App'
import Home from './components/HelloFromVux'
import discountShow from './components/discountShow/discountShow'
import publishingTask from './components/publishingTask/publishingTask'
import personalCenter from './components/personalCenter/personalCenter'
import demo from './components/lianxi/demo.vue'

Vue.use(VueRouter)

const routes = [
	{
	  path: '/',
	  redirect: '/publishingTask'
	},
    {
      path: '/publishingTask',
      name: '发布任务',
      component: publishingTask
    },
    {
      path: '/discountShow',
      name: '折扣爆料',
      component: discountShow
    },
    {
      path: '/personalCenter',
      name: '个人中心',
      component: personalCenter
    },
    {
      path:'/demo',
      name:'demo',
      component:demo
    }
]

const router = new VueRouter({
  routes
})

FastClick.attach(document.body)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  router,
  render: h => h(App)
}).$mount('#app-box')
